<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Carson</title>
    <script src="https://cdn.bootcss.com/vConsole/3.3.0/vconsole.min.js"></script>
    <script>
        // 开启移动端控制台
	var vConsole = new VConsole();
    </script>
    <script>
         <!--初始化返回-->
         android.requestDataFromJs("camera");

         <!--"无返回值可以不传 有返回值可以传文字也可以传josn串"-->
         <!--调用android-->
         function requestDataFromJs(){
            android.requestDataFromJs("camera");
         }

         <!--获取Android数据-->
         function requestDataFromAndroid(data){
            console.log(data)
            return "success"
         }

    </script>
</head>
<body>

<button type="button"
        id="button1"
        style="width: 250px; height: 80px; font-size:20px; margin-left:40px; margin-top:60px;"
        onclick="requestDataFromJs()">调用相机
</button>


</body>
</html>